//---------------------------------------------------------------------------

#ifndef frZAM_SHETH
#define frZAM_SHETH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <ExtCtrls.hpp>
#include "cxContainer.hpp"
#include "cxControls.hpp"
#include "cxEdit.hpp"
#include "cxGraphics.hpp"
#include "cxGroupBox.hpp"
#include "cxLookAndFeelPainters.hpp"
#include "cxLookAndFeels.hpp"
#include <DBCtrls.hpp>
#include <Mask.hpp>
#include "IBCustomDataSet.hpp"
#include <DB.hpp>
#include "cxCalendar.hpp"
#include "cxDBEdit.hpp"
#include "cxDropDownEdit.hpp"
#include "cxMaskEdit.hpp"
#include "cxTextEdit.hpp"
#include "cxButtons.hpp"
#include <ActnList.hpp>
#include <Menus.hpp>
//---------------------------------------------------------------------------
class TfrZAM_SHET : public TForm
{
__published:	// IDE-managed Components
	TPanel *pNEW_SCH;
	TPanel *pOLD_SHT;
	TcxGroupBox *gbNEW_SHT;
	TcxGroupBox *gbOLD_SHT;
	TLabel *Label1;
	TLabel *Label2;
	TDBEdit *dbeMARKA;
	TDBEdit *dbeMODEL;
	TLabel *Label3;
	TDBText *labOPL_POK;
	TLabel *Label4;
	TLabel *Label5;
	TDBText *labNACH_POK;
	TLabel *Label6;
	TDataSource *dsOLD_SHT;
	TIBDataSet *dsetOLD_SHT;
	TcxGroupBox *gbMARKA_MODEL;
	TLabel *Label7;
	TDBLookupComboBox *cbMARKA;
	TLabel *Label8;
	TDBLookupComboBox *cbMODEL;
	TLabel *Label9;
	TDBEdit *dbeKOD_SHT;
	TcxGroupBox *gbHAR_SHT;
	TLabel *Label10;
	TDBText *labRAST;
	TLabel *Label11;
	TDBText *labRAZR;
	TLabel *Label12;
	TLabel *labISPOLN;
	TLabel *Label13;
	TLabel *labRezba;
	TIBDataSet *dsetMARKA;
	TDataSource *dsMARKA;
	TDataSource *dsMODEL;
	TIBDataSet *dsetMODEL;
	TDataSource *dsKOD_PRIB;
	TIBDataSet *dsetKOD_PRIB;
	TLabel *Label14;
	TDBText *labProizv;
	TcxGroupBox *gbHAR_SH2;
	TLabel *Label15;
	TEdit *edZAV_NOM;
	TLabel *Label16;
	TLabel *Label17;
	TLabel *Label18;
	TLabel *Label19;
	TLabel *Label20;
	TcxDateEdit *dtpDAT_ZAM;
	TcxDateEdit *dtpDAT_POV;
	TcxDateEdit *dtpDAT_PLOMB;
	TEdit *edPLOMB;
	TActionList *ActionList1;
	TcxButton *btSAVE;
	TAction *SAVE;
	TEdit *edPOK_SNJT;
	TComboBox *cbKEM_UST;
	TcxGroupBox *gbMESTO;
	TLabel *Label21;
	TComboBox *cbMESTO;
	TLabel *Label22;
	TComboBox *cbTO;
	TLabel *Label23;
	TcxDateEdit *dtpDAT_IZGOT;
	TLabel *Label24;
	TEdit *edPOK_UST;
	void __fastcall FormKeyPress(TObject *Sender, char &Key);
	void __fastcall cbMARKAClick(TObject *Sender);
	void __fastcall cbMODELClick(TObject *Sender);
	void __fastcall edZAV_NOMKeyDown(TObject *Sender, WORD &Key,
          TShiftState Shift);
	void __fastcall dtpDAT_ZAMKeyDown(TObject *Sender, WORD &Key,
          TShiftState Shift);
	void __fastcall FormShow(TObject *Sender);
	void __fastcall dtpDAT_POVKeyDown(TObject *Sender, WORD &Key,
          TShiftState Shift);
	void __fastcall edPLOMBKeyDown(TObject *Sender, WORD &Key, TShiftState Shift);
	void __fastcall dtpDAT_PLOMBKeyDown(TObject *Sender, WORD &Key,
          TShiftState Shift);
	void __fastcall edKEM_USTKeyDown(TObject *Sender, WORD &Key,
          TShiftState Shift);
	void __fastcall SAVEExecute(TObject *Sender);
	void __fastcall edPOK_SNJTKeyDown(TObject *Sender, WORD &Key,
          TShiftState Shift);
	void __fastcall cbKEM_USTKeyDown(TObject *Sender, WORD &Key,
          TShiftState Shift);
	void __fastcall cbMESTOKeyDown(TObject *Sender, WORD &Key, TShiftState Shift);
	void __fastcall cbTOKeyDown(TObject *Sender, WORD &Key, TShiftState Shift);
	void __fastcall dtpDAT_IZGOTKeyDown(TObject *Sender, WORD &Key,
          TShiftState Shift);
	void __fastcall edPOK_USTKeyDown(TObject *Sender, WORD &Key,
          TShiftState Shift);
private:	// User declarations
public:		// User declarations
int KOD_SHT,NOM_ABON;
	__fastcall TfrZAM_SHET(TComponent* Owner);
	void __fastcall TfrZAM_SHET::Obnovi();
};
//---------------------------------------------------------------------------
extern PACKAGE TfrZAM_SHET *frZAM_SHET;
//---------------------------------------------------------------------------
#endif
